<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<jsp:include page="../../../common/head.jsp">
			 <jsp:param name="_spPage" value="true"/>
			 <jsp:param name="_useCalendar" value="false"/>
			 <jsp:param name="_useTab" value="false"/>
			 <jsp:param name="_useTree" value="false"/>
			 <jsp:param name="_useModal" value="false"/>
			 <jsp:param name="_useOrgSuggest" value="false"/>
		</jsp:include>

		<title>消息模板管理</title>
		<script language="JavaScript">   	
		    function addMessageTemplate()
			{
				window.location.href="add_messageTemplate.jsp";
			}
		    function updMessageTemplate(messageTemplateId){
			    window.location.href="updateMessageTemplate.do?messageTemplateId="+messageTemplateId;
		    } 
			function delMessageTemplate(messageTemplateId){
			     if(confirm("确认删除？"))
			     {
			           var returnVal = ModalWindow("jump.do?path=delMessageTemplate.do&messageTemplateId="+messageTemplateId,640,480);
			    if(returnVal=="ok")
			    {
			    	 xjSpPage.spPageSubmit();
			    }
			  }	
			}
		</script>
	</head>
	<body>
	<form action="listMessageTemplate.do" name="from1" method="post">
	<div id="body_div">
	<w:ShowTitle name="消息模板管理">
	<w:TitleButton funcName="查询" onClickFunction="_queryDivBg(this)" urlImg="${ctx}/images/main/query.png"/>
	<w:TitleButton funcName="添加" onClickFunction="addMessageTemplate()" urlImg="${ctx}/images/main/add.png"/>
	</w:ShowTitle>
	<div id="body_content">
				<div id="queryDiv">
				<table width="100%" border="0">
					<tr>
						<td colspan="4" class="td_title">
							消息模板查询
						</td>
					</tr>
					<tr>
						<td width="200">系统消息模板名称</td>
						<td class="left_align"><input type="text" name="messageTemplateName" value="${messageTemplateName}"/></td>

					</tr>
					<tr>
						 <td colspan="4">
							<input name="button" type="submit" class="btn_standard" onclick="" value="查询" />
							<input name="button" type="button" class="btn_standard" onclick="_cancelQuery()" value="取消" />
						</td>
					</tr>
				</table>
				</div>	
				<table width="100%">
					<tr>
						<td width="200" class="td_title">系统消息模板名称</td>
						<td class="td_title" width="250">模板内容</td>
						<td class="td_title" width="#">模板说明</td>
						<td class="td_title" width="150">操作</td>
					</tr>
					<c:forEach items="${datalist}" var="obj">
						<tr>
							<td>${obj.messageTemplateName}</td>
							<td>${obj.templateContent}</td>
							<td>${obj.templateNote}</td>
							<td>
							<a href="#" onclick="updMessageTemplate('${obj.messageTemplateId}')">修改</a>&nbsp;
							<a href="#" onclick="delMessageTemplate('${obj.messageTemplateId}')">删除</a>
							</td>
						</tr>
					</c:forEach>
				</table>
				<w:spPage />
			</div>
		</div>	
		</form>
	</body>
</html>